//
//  SignatureViewTool.h
//  Bees
//
//  Created by NowYouCanSee on 2019/2/19.
//  Copyright © 2019 xiaohan. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "SignatureModel.h"
NS_ASSUME_NONNULL_BEGIN

@interface SignatureViewTool : NSObject
SINGLETON_FOR_HEADER(SignatureViewTool)
@property (nonatomic,strong)NSMutableDictionary*curWalletPwdDic;
@property (nonatomic,assign)BOOL isWhite;
- (void)alertController:(UIViewController*)controller withSignatureModel:(SignatureModel*)signatureModel DappInfo:(DappInfo*)dappInfo cancelAction:(void(^)(void))cancelAction sureAction:(void(^)(WhiteDappInfo*whiteDappInfo,BOOL didWhite))sureAction;
- (void)dissmiss;
///检查白名单
- (void)checkWhites:(Wallet*)curWallet;
////查看签名是否在白名单里
- (void)checkSignatureModel:(SignatureModel*)signatureModel withWallet:(Wallet*)wallet dapp:(DappInfo*)dappInfo callBack:(void(^)(BOOL isWhite,BOOL isFree,WhiteDappInfo *whiteDappInfo))callBack;
///添加白名单
- (void)addWhiteDappInfo:(WhiteDappInfo*)whiteDappInfo withWallet:(Wallet*)wallet dapp:(DappInfo*)dappInfo;
@end

NS_ASSUME_NONNULL_END
